Skip to content

Instantly share code, notes, and snippets.

@pepi55
Last active December 24, 2020 12:42
Show Gist options
  • Select an option

  • Save pepi55/a2dec6294a75f3f3fef32a657fedcd32 to your computer and use it in GitHub Desktop.

Select an option

Save pepi55/a2dec6294a75f3f3fef32a657fedcd32 to your computer and use it in GitHub Desktop.

Revisions

  1. pepi55 revised this gist Dec 24, 2020. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion simple.vimrc
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@
    call plug#begin() "'~/.vim/bundle/'

    " Plugins
    Plug 'VundleVim/Vundle.vim'
    Plug 'tpope/vim-surround'

    " Themes
  2. pepi55 revised this gist Dec 15, 2020. 1 changed file with 7 additions and 11 deletions.
    18 changes: 7 additions & 11 deletions simple.vimrc
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,15 @@
    set nocompatible
    filetype off

    set rtp+=~/.vim/bundle/Vundle.vim
    call vundle#begin() "'~/.vim/bundle/'
    call plug#begin() "'~/.vim/bundle/'

    " Plugins
    Plugin 'VundleVim/Vundle.vim'
    Plugin 'tpope/vim-surround'
    Plug 'VundleVim/Vundle.vim'
    Plug 'tpope/vim-surround'

    " Themes
    Plugin 'sjl/badwolf'
    Plugin 'tomasr/molokai'
    Plugin 'chriskempson/vim-tomorrow-theme'
    Plug 'sjl/badwolf'
    Plug 'tomasr/molokai'
    Plug 'chriskempson/vim-tomorrow-theme'

    call vundle#end()
    call plug#end()

    syntax on
    filetype plugin indent on
  3. pepi55 revised this gist Aug 9, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions simple.vimrc
    Original file line number Diff line number Diff line change
    @@ -21,8 +21,8 @@ filetype plugin indent on
    set number
    set encoding=utf-8
    set completeopt-=preview
    set undodir=$HOME/vimfiles/undo
    set viewdir=$HOME/vimfiles/view
    set undodir=$HOME/.vim/undo
    set viewdir=$HOME/.vim/view
    set undofile
    set nocp
    set shiftwidth=2
  4. pepi55 revised this gist Aug 2, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion simple.vimrc
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,7 @@ set list
    set pastetoggle=<F4>

    colorscheme badwolf
    highlight StatusLine ctermbg=darkred ctermfg=lightgrey
    highlight StatusLine ctermbg=black ctermfg=lightgrey

    nnoremap <leader>ev <C-w><C-v><C-l>:e $MYVIMRC<cr>
  5. pepi55 created this gist Aug 2, 2019.
    72 changes: 72 additions & 0 deletions simple.vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,72 @@
    set nocompatible
    filetype off

    set rtp+=~/.vim/bundle/Vundle.vim
    call vundle#begin() "'~/.vim/bundle/'

    " Plugins
    Plugin 'VundleVim/Vundle.vim'
    Plugin 'tpope/vim-surround'

    " Themes
    Plugin 'sjl/badwolf'
    Plugin 'tomasr/molokai'
    Plugin 'chriskempson/vim-tomorrow-theme'

    call vundle#end()

    syntax on
    filetype plugin indent on

    set number
    set encoding=utf-8
    set completeopt-=preview
    set undodir=$HOME/vimfiles/undo
    set viewdir=$HOME/vimfiles/view
    set undofile
    set nocp
    set shiftwidth=2
    set tabstop=2
    set showcmd
    set wrap
    set laststatus=2
    set statusline=\ %L\ lines,\ %p%%\ %y\ %<%f\ %h%w%m%r%=%-14.(%l,%c%V%)\ %P\

    set ignorecase
    set smartcase
    set noswapfile
    set linebreak

    set fileformat=unix
    set fileformats=unix,dos

    scriptencoding "utf-8"
    set encoding=utf-8

    set listchars=tab:\›\ ,trail:×

    set list
    set pastetoggle=<F4>

    colorscheme badwolf
    highlight StatusLine ctermbg=darkred ctermfg=lightgrey

    nnoremap <leader>ev <C-w><C-v><C-l>:e $MYVIMRC<cr>
    nnoremap <c-c> <esc>
    vnoremap <C-c> <Esc>gV
    onoremap <C-c> <Esc>
    inoremap <C-c> <Esc>`^
    inoremap {<CR> {<CR>}<Esc>O
    inoremap (<CR> (<CR>)<Esc>O
    inoremap [<CR> [<CR>]<Esc>O
    inoremap <Up> <NOP>
    noremap <Up> <NOP>
    inoremap <Down> <NOP>
    noremap <Down> <NOP>
    inoremap <Left> <NOP>
    noremap <Left> <NOP>
    inoremap <Right> <NOP>
    noremap <Right> <NOP>