From 207ec82453ebef3b06e5d13df3375d6b7bee201b Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Sun, 10 Nov 2024 02:44:20 +0700 Subject: [PATCH] move vimrc file --- .vimrc | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .vimrc diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..bcb22a2 --- /dev/null +++ b/.vimrc @@ -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 e :NERDTreeFocus +nnoremap :NERDTree +nnoremap :NERDTreeToggle +nnoremap :NERDTreeFind + + +" 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 +