move vimrc file
This commit is contained in:
commit
207ec82453
56
.vimrc
Normal file
56
.vimrc
Normal file
@ -0,0 +1,56 @@
|
||||
" vimrc
|
||||
"
|
||||
" Map leader key to space key
|
||||
let mapleader = " "
|
||||
|
||||
|
||||
" Enable syntax highlighting
|
||||
syntax on
|
||||
|
||||
|
||||
" Set color scheme
|
||||
colorscheme slate
|
||||
|
||||
" Set font
|
||||
set guifont=Monaco\ 12
|
||||
|
||||
" Set tab settings
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
|
||||
" Enable cursor line
|
||||
set cursorline
|
||||
|
||||
" Enable auto-indentation
|
||||
set autoindent
|
||||
|
||||
" Enable auto-completion
|
||||
set completeopt=menu,menuone,noselect
|
||||
|
||||
" Map NERDTree to leader key + n
|
||||
nnoremap <leader>e :NERDTreeFocus<CR>
|
||||
nnoremap <C-n> :NERDTree<CR>
|
||||
nnoremap <C-t> :NERDTreeToggle<CR>
|
||||
nnoremap <C-f> :NERDTreeFind<CR>
|
||||
|
||||
|
||||
" LSP settings
|
||||
let g:lsp_server_commands = ['clangd']
|
||||
let g:lsp_auto_enable = 1
|
||||
|
||||
" Enable true color support
|
||||
set termguicolors
|
||||
set laststatus=2
|
||||
set noshowmode
|
||||
if !has('gui_running')
|
||||
set t_Co=256
|
||||
endif
|
||||
|
||||
let g:airline#extensions#ale#enabled = 1
|
||||
|
||||
" PLUGINS =============================
|
||||
if filereadable(expand("~/.vimrc.plug"))
|
||||
source ~/.vimrc.plug
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user