Skip to content

cmavromichalis/vim-settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-settings

My settings for working in go; forked from Sam

Installation

Requirements

  • At least vim 8
  • curl
  • git
  • go 1.9 - For golint(golang.org/x/lint/golint)
  • c-tags - For tagbar(github.com/majutsushi/tagbar)
  • The following:
    • apt-get install c-tags
    • go get -u -v golang.org/x/tools/cmd/guru
    • go get github.com/axw/gocov/gocov
    • go get -u github.com/jstemmer/gotags
    • go get golang.org/x/tools/cmd/goimports
    • go get -u golang.org/x/lint/golint
    • go get -u github.com/kisielk/errcheck

Clone the repository: $ git clone https://github.com/cmavromichalis/vim-settings.git

Run the build script by using $ ./build.sh from the root folder of the repository. You may have to use $ chmod +x build.sh to make the script executable.

The dotfiles are then installed with the old dotfiles copied and given a ".bak" suffix.

Once the plugins have been installed by running vim in the background, the plugin installation status and this readme will open in a split.

Basics

vim-plug is used as the plugin manager here. vim-sensible is used to provide very basic settings, the vimrc itself only really relates to settings managing plugins, personal settings, etc.

List of Plugins

Keybindings

By default, the <Leader> key in vim is the backslash. The full listing of keybindings in the vimrc:

Binding Command Comment
<Leader>c :lclose Closes loclist (where syntax error messages show up)
<Leader>o :lopen Opens loclist
<Leader>f :Files fzf window to open a new file
<Leader>b :Buffers fzf window to go to open buffer
<Leader>n :bn Switch to next buffer
<Leader>p :bp Switch to previous buffer
<Leader>t :NERDTreeToggle Toggle NERDTree window

License

This repository released under the MIT License, all plugins are released under their respective licenses.

About

My settings for working in go; forked from Sam

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published