From 74fe4fe02ae85ee13605a0d3650f22128ac0f115 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 26 Nov 2013 10:35:35 -0200 Subject: [PATCH] moved the autocommands to the autocommand block --- configs/vimrc | 64 +++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/configs/vimrc b/configs/vimrc index e5da633..eaf6e0d 100644 --- a/configs/vimrc +++ b/configs/vimrc @@ -28,6 +28,38 @@ if &t_Co > 2 || has("gui_running") set hlsearch endif +" ---------------------------------------------------------------------- +" Those are my settings +" ---------------------------------------------------------------------- + +set tabstop=4 " tabs are displayed as 4 spaces +set shiftwidth=4 " by default, when auto-identing, add 4 spaces (or 1 tabstop) +set foldmethod=marker " fold on markers +set scrolloff=1 " always show one line around the cursor +set laststatus=2 " always show the status bar ('cause I like to see the line and column, always) +set showtabline=2 " always show the tabline +set showmatch " show matching bracket +set noerrorbells " no error bells +set autowrite " write the file when switching between files or something +set nowrap " do not wrap long lines +set nobackup " do not keep a backup file, use versions instead +set history=50 " keep 50 lines of command line history +set ruler " show the cursor position all the time +set showcmd " display incomplete commands +set incsearch " do incremental searching +set formatoptions=tcq " wrap with textwidth, wrap comments, insert commend leader (twice), format comments +set smartindent " smart identation +set number " show line numbers +set wim=longest,list " file auto-completion +set background=dark " to follow most of the colorschemes I use +set vb t_vb= " convert bells to visual bells and do nothing as visual bell + +set t_Co=256 " 256 color terminals + +syntax sync minlines=1500 " increases the number of lines to find the proper syntax + +let mapleader="," " use comma to start user-defined (in plugins) functions + " Only do this part when compiled with support for autocommands. if has("autocmd") " Enable file type detection. @@ -104,38 +136,6 @@ else set autoindent " always set autoindenting on endif " has("autocmd") -" ---------------------------------------------------------------------- -" Those are my settings -" ---------------------------------------------------------------------- - -set tabstop=4 " tabs are displayed as 4 spaces -set shiftwidth=4 " by default, when auto-identing, add 4 spaces (or 1 tabstop) -set foldmethod=marker " fold on markers -set scrolloff=1 " always show one line around the cursor -set laststatus=2 " always show the status bar ('cause I like to see the line and column, always) -set showtabline=2 " always show the tabline -set showmatch " show matching bracket -set noerrorbells " no error bells -set autowrite " write the file when switching between files or something -set nowrap " do not wrap long lines -set nobackup " do not keep a backup file, use versions instead -set history=50 " keep 50 lines of command line history -set ruler " show the cursor position all the time -set showcmd " display incomplete commands -set incsearch " do incremental searching -set formatoptions=tcq " wrap with textwidth, wrap comments, insert commend leader (twice), format comments -set smartindent " smart identation -set number " show line numbers -set wim=longest,list " file auto-completion -set background=dark " to follow most of the colorschemes I use -set vb t_vb= " convert bells to visual bells and do nothing as visual bell - -set t_Co=256 " 256 color terminals - -syntax sync minlines=1500 " increases the number of lines to find the proper syntax - -let mapleader="," " use comma to start user-defined (in plugins) functions - " ---------------------------------------------------------------------- " mapings " ----------------------------------------------------------------------