Dolphin type neovim.
trying to install python formatter
1 file changed, +30 -33
+30-33init.vim
| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | imap jj <Esc> |
| 2 | 2 | let mapleader=" " |
| 3 | 3 | filetype plugin indent on |
| 4 | -nmap ,, A,<Esc> | |
| 5 | -nmap ;; A;<Esc> | |
| 4 | +nnoremap ,, A,<Esc> | |
| 5 | +nnoremap ;; A;<Esc> | |
| 6 | 6 | set mouse=a |
| 7 | 7 | set number |
| 8 | 8 | set hidden |
| @@ -11,23 +11,25 @@ set autoindent | ||
| 11 | 11 | set smartindent |
| 12 | 12 | set shiftwidth=4 |
| 13 | 13 | set tabstop=4 |
| 14 | +set autoindent | |
| 14 | 15 | set encoding=utf8 |
| 15 | 16 | set history=5000 |
| 16 | 17 | set autoread |
| 18 | +set clipboard=unnamedplus | |
| 17 | 19 | colorscheme habamax |
| 18 | 20 | highlight Normal ctermbg=none " Remove background color |
| 19 | 21 | :au FocusLost * :wa " Auto save when focus is lost |
| 20 | 22 | :au BufLeave * :wa " Auto save when buffer is left |
| 21 | 23 | vnoremap p "0p |
| 22 | -nmap <leader>f gg=G<C-o> | |
| 23 | -nmap <leader>t :Telescope find_files<CR> | |
| 24 | -nmap <leader>z :FZF<CR> | |
| 25 | -nmap <C-n> :bnext<CR> | |
| 26 | -nmap <C-p> :bprevious<CR> | |
| 27 | -nmap <C-k> :bd<CR> :bn<CR> :NERDTreeFind<CR><CR> | |
| 28 | -nmap <leader>w <C-w><C-w> | |
| 29 | -nmap <M-w> <C-w><C-w> | |
| 30 | -nmap <leader>ev :e $MYVIMRC<CR> | |
| 24 | +nnoremap <leader>f gg=G<C-o> | |
| 25 | +nnoremap <leader>z :FZF<CR> | |
| 26 | +nnoremap <C-n> :bnext<CR> | |
| 27 | +nnoremap <C-p> :bprevious<CR> | |
| 28 | +nnoremap <C-k> :bd<CR>:bn<CR> | |
| 29 | +nnoremap <leader>w <C-w><C-w> | |
| 30 | +nnoremap <M-w> <C-w><C-w> | |
| 31 | +nnoremap <leader>ev :e $MYVIMRC<CR> | |
| 32 | +nnoremap c= 0f=lv$c<CR><Esc>kA | |
| 31 | 33 | |
| 32 | 34 | |
| 33 | 35 | " Vim-Plug settings |
| @@ -39,16 +41,11 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'} | ||
| 39 | 41 | Plug 'github/copilot.vim' |
| 40 | 42 | Plug 'vim-airline/vim-airline-themes' |
| 41 | 43 | Plug 'tpope/vim-commentary' |
| 42 | -Plug 'nvim-lua/plenary.nvim' | |
| 43 | -Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.5' } | |
| 44 | 44 | Plug 'akinsho/toggleterm.nvim', |
| 45 | 45 | Plug 'vim-airline/vim-airline', |
| 46 | 46 | Plug 'tpope/vim-fugitive', |
| 47 | -Plug 'rbong/vim-flog', | |
| 48 | -Plug 'tpope/vim-capslock', | |
| 49 | -Plug 'Shougo/denite.nvim', | |
| 50 | 47 | Plug 'junegunn/fzf', |
| 51 | -Plug 'prabirshrestha/vim-lsp', | |
| 48 | +Plug 'averms/black-nvim', {'do': ':UpdateRemotePlugins'}, | |
| 52 | 49 | call plug#end() |
| 53 | 50 | |
| 54 | 51 | |
| @@ -58,15 +55,15 @@ autocmd VimEnter * NERDTree | ||
| 58 | 55 | |
| 59 | 56 | |
| 60 | 57 | " Code Completion |
| 61 | -nmap <silent> gd <Plug>(coc-definition)zz | |
| 62 | -nmap <silent> gy <Plug>(coc-type-definition)zz | |
| 63 | -nmap <silent> gr <Plug>(coc-references)zz | |
| 64 | -nmap <silent> [g <Plug>(coc-diagnostic-prev)zz | |
| 65 | -nmap <silent> ]g <Plug>(coc-diagnostic-next)zz | |
| 58 | +nnoremap <silent> gd <Plug>(coc-definition) zt | |
| 59 | +nnoremap <silent> gy <Plug>(coc-type-definition)zz | |
| 60 | +nnoremap <silent> gr <Plug>(coc-references)zz | |
| 61 | +nnoremap <silent> [g <Plug>(coc-diagnostic-prev)zz | |
| 62 | +nnoremap <silent> ]g <Plug>(coc-diagnostic-next)zz | |
| 66 | 63 | nnoremap <silent> <space>s :<C-u>CocList -I symbols<cr> |
| 67 | 64 | nnoremap <silent> <space>d :<C-u>CocList diagnostics<cr> |
| 68 | -nmap <leader>do <Plug>(coc-codeaction) | |
| 69 | -nmap <leader>rn <Plug>(coc-rename) | |
| 65 | +nnoremap <leader>do <Plug>(coc-codeaction) | |
| 66 | +nnoremap <leader>rn <Plug>(coc-rename) | |
| 70 | 67 | let g:coc_global_extensions = [ |
| 71 | 68 | \ 'coc-tsserver', |
| 72 | 69 | \ 'coc-json', |
| @@ -99,12 +96,12 @@ lua require("toggleterm").setup({ | ||
| 99 | 96 | \ }) |
| 100 | 97 | |
| 101 | 98 | " Ensure the screen centers on jumping command |
| 102 | -nmap <silent> <C-y> <C-y>zz | |
| 103 | -nmap <silent> <C-u> <C-u>zz | |
| 104 | -nmap <silent> <C-d> <C-d>zz | |
| 105 | -nmap <silent> <C-b> <C-b>zz | |
| 106 | -nmap <silent> <C-f> <C-f>zz | |
| 107 | -nmap <silent> <C-o> <C-o>zz | |
| 108 | -nmap <silent> <C-i> <C-i>zz | |
| 109 | -nmap <silent> <C-t> <C-t>zz | |
| 110 | -nmap <silent> <C-g> <C-g>zz | |
| 99 | +nnoremap <silent> <C-y> <C-y>zz | |
| 100 | +nnoremap <silent> <C-u> <C-u>zz | |
| 101 | +nnoremap <silent> <C-d> <C-d>zz | |
| 102 | +nnoremap <silent> <C-b> <C-b>zz | |
| 103 | +nnoremap <silent> <C-f> <C-f>zz | |
| 104 | +nnoremap <silent> <C-o> <C-o>zz | |
| 105 | +nnoremap <silent> <C-i> <C-i>zz | |
| 106 | +nnoremap <silent> <C-t> <C-t>zz | |
| 107 | +nnoremap <silent> <C-g> <C-g>zz |