This commit is contained in:
Franzi 2018-08-24 11:27:59 +02:00
parent 7c0df8c680
commit 95bdd02903
1 changed files with 46 additions and 0 deletions

46
.vimrc Executable file
View File

@ -0,0 +1,46 @@
set number
set lbr
set fdc=0
set vb
set expandtab
set shiftwidth=4
set tabstop=4
set softtabstop=4
set linespace=0
set autoindent
set smartindent
set mouse=a
set cursorline
syntax on
set showcmd
set autowrite
set noautochdir
set hlsearch
map <silent> <c-k> :nohlsearch<CR>
"set laststatus=2 "make a status line above the command line. otherwise this won't work
"set statusline= "clear statusline
"set statusline+=%-3.3n " buffer number
"set statusline+=%f " file name
"set statusline+=%h%m%r%w " flags
"set statusline+=[%{strlen(&ft)?&ft:'none'}, " filetype
"set statusline+=%{strlen(&fenc)?&fenc:&enc}, " encoding
"set statusline+=%{&fileformat}] " file format
"set statusline+=%= " right align
"set statusline+=%{synIDattr(synID(line('.'),col('.'),1),'name')} " highlight
"set statusline+=%b,0x%-8B " current char
set colorcolumn=80,120
hi colorcolumn ctermbg=NONE ctermfg=red cterm=bold guibg=NONE guifg=red gui=bold
au BufRead /tmp/mutt-* set tw=72
execute pathogen#infect()
"autocmd vimenter * NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
let g:ycm_server_python_interpreter = '/usr/bin/python2'
let g:ycm_global_ycm_extra_conf = '/usr/share/vim/vimfiles/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'