diff options
author | Yigit Sever | 2019-04-10 13:20:22 +0300 |
---|---|---|
committer | Yigit Sever | 2019-04-10 13:20:22 +0300 |
commit | d65b7f04edfdb84c0e8d1f499d6d243f82b400a4 (patch) | |
tree | e400120d3d4939f851ef074c04aca10fdc056713 | |
parent | 6e15ee0798d53f4dc3029f14fbc36994433b8944 (diff) | |
download | dotfiles-d65b7f04edfdb84c0e8d1f499d6d243f82b400a4.tar.gz dotfiles-d65b7f04edfdb84c0e8d1f499d6d243f82b400a4.tar.bz2 dotfiles-d65b7f04edfdb84c0e8d1f499d6d243f82b400a4.zip |
Vim uses abolish
-rw-r--r-- | .config/nvim/after/plugin/abolish.vim | 11 | ||||
-rwxr-xr-x | .config/nvim/init.vim | 56 |
2 files changed, 40 insertions, 27 deletions
diff --git a/.config/nvim/after/plugin/abolish.vim b/.config/nvim/after/plugin/abolish.vim new file mode 100644 index 0000000..cfb6233 --- /dev/null +++ b/.config/nvim/after/plugin/abolish.vim | |||
@@ -0,0 +1,11 @@ | |||
1 | Abolish {despa,sepe}rat{e,es,ed,ing,ely,ion,ions,or} {despe,sepa}rat{} | ||
2 | Abolish persistan{ce,t,tly} persisten{} | ||
3 | Abolish despara{te,tely,tion} despera{} | ||
4 | Abolish seperat{e,es,ed,ing,ely,ion,ions,or} separat{} | ||
5 | Abolish teh the | ||
6 | Abolish {,un}nec{ce,ces,e}sar{y,ily} {}nec{es}sar{} | ||
7 | Abolish {,ir}releven{ce,cy,t,tly} {}relevan{} | ||
8 | |||
9 | iabbrev <silent> longdate <C-R>=strftime("%a %b %d %T %Z %Y")<CR> | ||
10 | iabbrev <silent> todaydatetime <C-R>=strftime("%F %T")<CR> | ||
11 | iabbrev <silent> todaydate <C-R>=strftime("%F")<CR> | ||
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index f3ce6d5..756480f 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim | |||
@@ -27,6 +27,7 @@ Plug 'bling/vim-airline' | |||
27 | 27 | ||
28 | " color theme. | 28 | " color theme. |
29 | Plug 'arcticicestudio/nord-vim' | 29 | Plug 'arcticicestudio/nord-vim' |
30 | Plug 'aonemd/kuroi.vim' | ||
30 | 31 | ||
31 | "Personal wiki | 32 | "Personal wiki |
32 | Plug 'vimwiki/vimwiki' | 33 | Plug 'vimwiki/vimwiki' |
@@ -43,10 +44,8 @@ Plug 'godlygeek/tabular' | |||
43 | Plug 'dbeniamine/cheat.sh-vim' | 44 | Plug 'dbeniamine/cheat.sh-vim' |
44 | "color code highlight | 45 | "color code highlight |
45 | Plug 'chrisbra/Colorizer' | 46 | Plug 'chrisbra/Colorizer' |
46 | 47 | "move selections up and down | |
47 | "comment helper | 48 | Plug 'matze/vim-move' |
48 | "Plug 'scrooloose/nerdcommenter' | ||
49 | Plug 'tpope/vim-commentary' | ||
50 | 49 | ||
51 | "folding ledger files | 50 | "folding ledger files |
52 | Plug 'ledger/vim-ledger' | 51 | Plug 'ledger/vim-ledger' |
@@ -80,6 +79,8 @@ Plug 'tpope/vim-speeddating' | |||
80 | Plug 'tpope/vim-abolish' | 79 | Plug 'tpope/vim-abolish' |
81 | "provides ga, show unicode stuff of char under cursor | 80 | "provides ga, show unicode stuff of char under cursor |
82 | Plug 'tpope/vim-characterize' | 81 | Plug 'tpope/vim-characterize' |
82 | "comment helper | ||
83 | Plug 'tpope/vim-commentary' | ||
83 | 84 | ||
84 | "fancy start screen | 85 | "fancy start screen |
85 | Plug 'mhinz/vim-startify' | 86 | Plug 'mhinz/vim-startify' |
@@ -98,6 +99,10 @@ autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif | |||
98 | 99 | ||
99 | " Close vim if the only window left open is NERDTree | 100 | " Close vim if the only window left open is NERDTree |
100 | autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | 101 | autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif |
102 | |||
103 | " Resize all windows proportionally when the terminal is resized | ||
104 | " let terminal resize scale the internal windows | ||
105 | autocmd VimResized * :wincmd = | ||
101 | "}}} | 106 | "}}} |
102 | 107 | ||
103 | "{{{Misc Settings | 108 | "{{{Misc Settings |
@@ -160,22 +165,22 @@ endfunction | |||
160 | "}}} | 165 | "}}} |
161 | 166 | ||
162 | "{{{Theme Rotating | 167 | "{{{Theme Rotating |
163 | "let themeindex=0 | 168 | let themeindex=0 |
164 | "function! RotateColorTheme() | 169 | function! RotateColorTheme() |
165 | "let y = -1 | 170 | let y = -1 |
166 | "while y == -1 | 171 | while y == -1 |
167 | "let colorstring = "#gotham#" | 172 | let colorstring = "#nord#kuroi#" |
168 | "let x = match( colorstring, "#", g:themeindex ) | 173 | let x = match( colorstring, "#", g:themeindex ) |
169 | "let y = match( colorstring, "#", x + 1 ) | 174 | let y = match( colorstring, "#", x + 1 ) |
170 | "let g:themeindex = x + 1 | 175 | let g:themeindex = x + 1 |
171 | "if y == -1 | 176 | if y == -1 |
172 | "let g:themeindex = 0 | 177 | let g:themeindex = 0 |
173 | "else | 178 | else |
174 | "let themestring = strpart(colorstring, x + 1, y - x - 1) | 179 | let themestring = strpart(colorstring, x + 1, y - x - 1) |
175 | "return ":colorscheme ".themestring | 180 | return ":colorscheme ".themestring |
176 | "endif | 181 | endif |
177 | "endwhile | 182 | endwhile |
178 | "endfunction | 183 | endfunction |
179 | " }}} | 184 | " }}} |
180 | 185 | ||
181 | "}}} | 186 | "}}} |
@@ -194,7 +199,7 @@ nnoremap <silent> <C-Left> :tabprevious<CR> | |||
194 | " New Tab | 199 | " New Tab |
195 | nnoremap <silent> <C-t> :tabnew<CR> | 200 | nnoremap <silent> <C-t> :tabnew<CR> |
196 | " Rotate Color Scheme <F8> | 201 | " Rotate Color Scheme <F8> |
197 | "nnoremap <silent> <F8> :execute RotateColorTheme()<CR> | 202 | nnoremap <silent> <F8> :execute RotateColorTheme()<CR> |
198 | " FixIt from YCM | 203 | " FixIt from YCM |
199 | map <F9> :YcmCompleter FixIt<CR> | 204 | map <F9> :YcmCompleter FixIt<CR> |
200 | " Edit vimrc \ev | 205 | " Edit vimrc \ev |
@@ -213,17 +218,14 @@ nnoremap <C-k> <C-w>k | |||
213 | nnoremap <C-h> <C-w>h | 218 | nnoremap <C-h> <C-w>h |
214 | nnoremap <C-l> <C-w>l | 219 | nnoremap <C-l> <C-w>l |
215 | " Disable highlight when <leader><cr> is pressed | 220 | " Disable highlight when <leader><cr> is pressed |
216 | map <silent> <leader><cr> :noh<cr> | 221 | nnoremap <Leader><cr> :set hls!<cr> |
217 | " Space will toggle folds! | 222 | " Space will toggle folds! |
218 | nnoremap <space> za | 223 | nnoremap <space> za |
219 | " Search mappings: These will make it so that going to the next one in a | 224 | " Search mappings: These will make it so that going to the next one in a |
220 | " search will center on the line it's found in. | 225 | " search will center on the line it's found in. |
221 | map N Nzz | 226 | map N Nzz |
222 | map n nzz | 227 | map n nzz |
223 | "Insert timestamp | 228 | |
224 | nnoremap <F5> "=strftime("%F %T")<CR>P | ||
225 | inoremap <F5> <C-R>=strftime("%F %T")<CR> | ||
226 | nnoremap <Leader>t "=strftime("%F")<CR>P | ||
227 | "}}} | 229 | "}}} |
228 | 230 | ||
229 | "{{{Tagbar | 231 | "{{{Tagbar |
@@ -372,5 +374,5 @@ let g:vimtex_view_method = 'zathura' | |||
372 | " }}} | 374 | " }}} |
373 | 375 | ||
374 | " {{{ rainbow | 376 | " {{{ rainbow |
375 | let g:rainbow_active = 1 | 377 | let g:rainbow_active = 0 |
376 | " }}} | 378 | " }}} |