12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- " enable syntax highlighting
- syntax enable
- " show line numbers
- set number
- " set tabs to have 4 spaces
- set ts=4
- " indent when moving to the next line while writing code
- set autoindent
- " expand tabs into spaces
- set expandtab
- " when using the >> or << commands, shift lines by 4 spaces
- set shiftwidth=4
- " show a visual line under the cursor's current line
- set cursorline
- " show the matching part of the pair for [] {} and ()
- set showmatch
- set background=dark
- let g:go_highlight_types = 1
- let g:go_highlight_fields = 1
- let g:go_highlight_functions = 1
- let g:go_highlight_function_calls = 1
- let g:go_highlight_operators = 1
- let g:go_highlight_extra_types = 1
- let g:go_highlight_build_constraints = 1
- let g:go_highlight_generate_tags = 1
- " enable all Python syntax highlighting features
- " let python_highlight_all = 1
- " syntax on
- "filetype plugin indent on
- " au filetype go inoremap <buffer> . .<C-x><C-o>
- call plug#begin()
- " The default plugin directory will be as follows:
- " - Vim (Linux/macOS): '~/.vim/plugged'
- " - Vim (Windows): '~/vimfiles/plugged'
- " - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
- " You can specify a custom plugin directory by passing it as the argument
- " - e.g. `call plug#begin('~/.vim/plugged')`
- " - Avoid using standard Vim directory names like 'plugin'
- " Make sure you use single quotes
- " Plug 'junegunn/fzf.vim'
- Plug 'preservim/nerdtree'
- Plug 'rust-lang/rust.vim'
- " Plug 'deoplete-plugins/deoplete-clang'
- " Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
- Plug 'neoclide/coc.nvim', {'branch': 'release'}
- " Plug 'nvim-treesitter/nvim-treesitter'
- Plug 'neovim/nvim-lspconfig'
- " Plug 'ray-x/go.nvim'
- Plug '~/Downloads/autoclose.vim'
- " Initialize plugin system
- " - Automatically executes `filetype plugin indent on` and `syntax enable`.
- "
- call plug#end()
- " You can revert the settings after the call like so:
- " filetype indent off " Disable file-type-specific indentation
- " syntax off " Disable syntax highlighting
- let NERDTreeShowHidden=1
- " Use tab for trigger completion with characters ahead and navigate
- " NOTE: There's always complete item selected by default, you may want to enable
- " no select by `"suggest.noselect": true` in your configuration file
- " NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
- " other plugin before putting this into your config
- inoremap <silent><expr> <TAB>
- \ coc#pum#visible() ? coc#pum#next(1) :
- \ CheckBackspace() ? "\<Tab>" :
- \ coc#refresh()
- inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|