diff options
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/.config/nvim/init.vim | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index ee74f70..df7a711 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim | |||
@@ -1,6 +1,4 @@ | |||
1 | runtime! archlinux.vim | 1 | "vimplug |
2 | set number relativenumber | ||
3 | |||
4 | call plug#begin() | 2 | call plug#begin() |
5 | Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | 3 | Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } |
6 | Plug 'Shougo/deoplete-clangx' | 4 | Plug 'Shougo/deoplete-clangx' |
@@ -17,11 +15,14 @@ Plug 'godlygeek/tabular' | |||
17 | Plug 'plasticboy/vim-markdown' | 15 | Plug 'plasticboy/vim-markdown' |
18 | call plug#end() | 16 | call plug#end() |
19 | 17 | ||
18 | "sets | ||
20 | set guicursor= | 19 | set guicursor= |
20 | set number relativenumber | ||
21 | set mouse=a | 21 | set mouse=a |
22 | set background=dark | 22 | set background=dark |
23 | syntax on | 23 | syntax on |
24 | set cursorline | 24 | set cursorline |
25 | set ignorecase | ||
25 | set smartcase | 26 | set smartcase |
26 | set wildmenu " Tab autocomplete in command mode | 27 | set wildmenu " Tab autocomplete in command mode |
27 | set autoread " Auto reload changed files | 28 | set autoread " Auto reload changed files |
@@ -94,9 +95,18 @@ autocmd StdinReadPre * let s:std_in=1 | |||
94 | autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | 95 | autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif |
95 | autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | 96 | autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif |
96 | 97 | ||
98 | "insert centered | ||
99 | autocmd InsertEnter * norm zz | ||
100 | |||
101 | "shortcut split navigation | ||
102 | map <C-h> <C-w>h | ||
103 | map <C-j> <C-w>j | ||
104 | map <C-k> <C-w>k | ||
105 | map <C-l> <C-w>l | ||
106 | |||
97 | "statusbar | 107 | "statusbar |
98 | hi Comment cterm=italic | 108 | hi Comment cterm=italic |
99 | hi CursorLine ctermbg=none | 109 | hi CursorLine ctermbg=none cterm=bold guibg=#2b2b2b |
100 | set statusline= | 110 | set statusline= |
101 | set statusline +=%1*\ %n\ %* "buffer number | 111 | set statusline +=%1*\ %n\ %* "buffer number |
102 | set statusline +=%5*%{&ff}%* "file format | 112 | set statusline +=%5*%{&ff}%* "file format |