Skip to content

Instantly share code, notes, and snippets.

@nilsoberg2
Last active September 21, 2021 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilsoberg2/ef9c4943d646042f148388800a5cb6b6 to your computer and use it in GitHub Desktop.
Save nilsoberg2/ef9c4943d646042f148388800a5cb6b6 to your computer and use it in GitHub Desktop.
My .vimrc with color and keyboard shortcuts
set nocompatible
colorscheme Tomorrow-Night
set number
"set lines=35 columns=150
"let mapleader=" "
"map <leader>s :source ~/.vimrc<CR>
set hidden
set history=100
filetype indent on
set nowrap
set tabstop=4
set shiftwidth=4
set expandtab
"set smartindent
"set autoindent
"set hlsearch
"nnoremap <silent> <Esc> :nohlsearch<Bar>:echo<CR>
"map <Right> <C-w>l
"map <Left> <C-w>h
"map <Down> <C-w><C-w>
"map <Up> <C-w>W
"nnoremap <Leader><Leader> :e#<CR>
"set showmatch
set pastetoggle=<F3>
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>
map , gT
map . gt
nnoremap <silent> gc xph
"insert tab character when expandtab option is on
inoremap <S-Tab> <C-V><Tab>
autocmd BufNewFile,BufRead *.twig set filetype=html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment