2018-06-06 17:31:11 +02:00
|
|
|
syntax on
|
2018-06-08 13:30:38 +02:00
|
|
|
filetype indent on
|
2018-06-06 17:31:11 +02:00
|
|
|
|
2018-06-08 13:30:38 +02:00
|
|
|
set encoding=utf-8
|
2018-06-06 17:31:11 +02:00
|
|
|
set clipboard=unnamed
|
|
|
|
set smartindent
|
|
|
|
set shiftwidth=2
|
|
|
|
set tabstop=2
|
2018-06-07 12:59:25 +02:00
|
|
|
set expandtab
|
2018-06-06 17:31:11 +02:00
|
|
|
set number
|
|
|
|
set autoread
|
|
|
|
|
2018-06-08 13:30:38 +02:00
|
|
|
"NERDTree
|
2018-06-07 12:59:25 +02:00
|
|
|
let NERDTreeShowHidden=1
|
|
|
|
let g:NERDTreeDirArrowExpandable = '▸'
|
|
|
|
let g:NERDTreeDirArrowCollapsible = '▾'
|
2018-06-06 17:31:11 +02:00
|
|
|
|
2018-06-08 13:30:38 +02:00
|
|
|
"Airline
|
|
|
|
let g:airline#extensions#tabline#enabled = 1
|
|
|
|
let g:Powerline_symbols='unicode'
|
|
|
|
let g:airline_powerline_fonts = 1
|
|
|
|
let g:airline_theme='solarized'
|
|
|
|
let g:airline_solarized_bg='dark'
|
2018-06-06 17:31:11 +02:00
|
|
|
|
2018-06-08 13:30:38 +02:00
|
|
|
"Mappings
|
2018-06-06 17:31:11 +02:00
|
|
|
:nmap <c-s> :w<CR>
|
|
|
|
:imap <c-s> <Esc>:w<CR>a
|
2018-06-08 13:30:38 +02:00
|
|
|
nnoremap <F7> :bp<CR>
|
|
|
|
nnoremap <F8> :bn<CR>
|
2018-06-07 12:59:25 +02:00
|
|
|
map <C-n> :NERDTreeToggle<CR>
|
2018-06-06 17:31:11 +02:00
|
|
|
|
2018-06-08 13:30:38 +02:00
|
|
|
"AutoCommands
|
2018-06-06 17:31:11 +02:00
|
|
|
au BufWinEnter * set number
|
2018-06-08 13:30:38 +02:00
|
|
|
au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null
|