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 " ----------------------------------------------------------------------