move vimrc file

This commit is contained in:
Triston Armstrong 2024-11-10 02:44:20 +07:00
commit 207ec82453
Signed by: tristonarmstrong
GPG Key ID: A23B48AE45EB6EFE

56
.vimrc Normal file
View 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