Skip to content

Instantly share code, notes, and snippets.

@nna774
Last active May 24, 2020 06:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nna774/1b472a51442531b5a3b48346bfab7440 to your computer and use it in GitHub Desktop.
Save nna774/1b472a51442531b5a3b48346bfab7440 to your computer and use it in GitHub Desktop.
syntax enable
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
set autoindent
set smartindent
set number
set showmatch
set incsearch
set matchtime=1
set ignorecase
nnoremap <ESC><ESC> :nohl<CR>
noremap j gj
noremap k gk
noremap Y y$
nnoremap <ESC><ESC> :nohl<CR>
nnoremap <CR> i<CR><Esc>
nnoremap q :q<CR>
nnoremap di_ T_dt_
set list
set listchars=tab:»-,trail:-,nbsp:%,eol:↲
set fileencoding=utf-8
set pastetoggle=<C-k>
autocmd FileType go setlocal noexpandtab
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif
set cursorline
highlight CursorLine cterm=underline ctermfg=NONE ctermbg=NONE
"highlight CursorLine cterm=reverse ctermfg=NONE ctermbg=NONE
"highlight CursorLine cterm=NONE ctermfg=white ctermbg=NONE
highlight CursorLineNr term=bold cterm=NONE ctermfg=yellow ctermbg=NONE
highlight Comment ctermfg=yellow
set mouse=
inoremap jk <ESC>
inoremap kj <ESC>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment