Skip to content

A simple vim configuration to replace your buggy IDE

License

Notifications You must be signed in to change notification settings

pct960/vim-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Freedom from slow and buggy IDEs

license

At some point or the other, we have all sworn at our IDEs for being painfully slow, buggy or both. Here's vim to the rescue. This is a simple and non-intrusive vim config that can replace your IDE to some extent. It is simple because there are not too many bells and whistles. It is non-intrusive because it does not assume any conveniences on your behalf (i.e not a lot of customisations and re-mappings)

Installation

  • Clone the repository and run the install script:

    git clone https://github.com/pct960/vim-setup && cd vim-setup
    ./install
    

Features

Apart from the features the vanilla vim configuration provides (line numbers, relative line numbers, auto indent etc.), the config has been extended to do a few more things.

  1. Nerdtree is automatically loaded when vim is opened
  2. Opening a file places the focus on the file instead of on the nerdtree pane
  3. Closing a file closes both the file and the nerdtree pane (provided no other tabs are open)
  4. To open a file in a new tab, press t, and to open it in split mode press s (This is a vim feature I know, but do read further)
  5. Now, to easily switch between tabs use Ctrl ← and Ctrl →.(Mission control shortcuts will need to be disabled for this work on macOS) The NERDTree pane will be available on all tabs, thanks to NERDTreeTabs.
  6. To navigate directly to a specific tab use ,<tab number>
  7. A terminal can be opened from inside vim using ,<space>. This brings up fish, if present, otherwise, brings up bash. It can be closed by simply pressing Esc twice.

Screenshots

screenshot1.png

screenshot2.png

Why isn't autocomplete available?

Autocomplete was deliberately not added since adding language servers and a lot of plugins will severely slow it down. The objective of this project was to have a fast, simple and clean alternative to a bulky IDE. Adding features that make it slow would be counterproductive. That being said, features that do not compromise the smooth experience of vim can always be added.

Contributions

Feel free to open a pull request, raise an issue or a feature request.

Credits

  • spacevim for the install script structure
  • amix for plugin ideas
  • rraks for the vanilla vim configuration

About

A simple vim configuration to replace your buggy IDE

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published