vim: Reorder vim configuration
This commit is contained in:
parent
9a0cc253b0
commit
75771d727d
1 changed files with 9 additions and 21 deletions
|
@ -1,13 +1,3 @@
|
||||||
nmap 0 a
|
|
||||||
|
|
||||||
syntax on
|
|
||||||
|
|
||||||
au FileType gitcommit highlight ColorColumn ctermbg=8
|
|
||||||
au FileType gitcommit setlocal colorcolumn=50,72
|
|
||||||
au FileType gitcommit setlocal textwidth=72
|
|
||||||
au FileType gitcommit setlocal spell
|
|
||||||
|
|
||||||
" Plugins
|
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'arcticicestudio/nord-vim'
|
Plug 'arcticicestudio/nord-vim'
|
||||||
Plug 'christoomey/vim-tmux-navigator'
|
Plug 'christoomey/vim-tmux-navigator'
|
||||||
|
@ -25,6 +15,11 @@ Plug 'sheerun/vim-polyglot'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
syntax on
|
||||||
|
filetype on
|
||||||
|
filetype indent on
|
||||||
|
filetype plugin on
|
||||||
|
|
||||||
set complete+=kspell
|
set complete+=kspell
|
||||||
set expandtab
|
set expandtab
|
||||||
set foldlevelstart=99 " Start unfolded
|
set foldlevelstart=99 " Start unfolded
|
||||||
|
@ -38,9 +33,6 @@ set smartindent
|
||||||
set tabstop=2 softtabstop=2
|
set tabstop=2 softtabstop=2
|
||||||
set termguicolors
|
set termguicolors
|
||||||
|
|
||||||
" Enable filetype plugins
|
|
||||||
filetype plugin on
|
|
||||||
|
|
||||||
colorscheme nord
|
colorscheme nord
|
||||||
|
|
||||||
" Remaps
|
" Remaps
|
||||||
|
@ -55,16 +47,12 @@ noremap <down> <nop>
|
||||||
noremap <left> <nop>
|
noremap <left> <nop>
|
||||||
noremap <right> <nop>
|
noremap <right> <nop>
|
||||||
|
|
||||||
" Ctrl+C should write the file
|
|
||||||
map <C-s> <esc>:w<CR>
|
|
||||||
imap <C-s> <esc>:w<CR>
|
|
||||||
|
|
||||||
" Nerdtree
|
" Nerdtree
|
||||||
let g:NERDTreeShowHidden=1
|
let g:NERDTreeShowHidden=1
|
||||||
let g:NERDTreeWinPos = "right"
|
let g:NERDTreeWinPos = "right"
|
||||||
nnoremap <leader>ne :NERDTreeToggle<CR>
|
nnoremap <leader>ne :NERDTreeToggle<CR>
|
||||||
|
|
||||||
let g:NERDTreeShowHidden=1
|
autocmd FileType gitcommit highlight ColorColumn ctermbg=8
|
||||||
let g:NERDTreeWinPos = "right"
|
autocmd FileType gitcommit setlocal colorcolumn=50,72
|
||||||
nnoremap <leader>ne :NERDTreeToggle<CR>
|
autocmd FileType gitcommit setlocal textwidth=72
|
||||||
|
autocmd FileType gitcommit setlocal spell
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue