Giter VIP home page Giter VIP logo

my-vim-plugins's Introduction

Vim plugins collection

This is the library of plugins that I use for my daily job. I use it mostly for embedded and kernel development in C, or C++, and plugins are chosen according to my needs. I also have my own .vimrc configuration file which sets a lot of options to vim. Fill free to test it and customize it to your own needs.

Plugin details and description

For each plugin, please visit its home page:

Installation

To install all plugins you should have pathogen installed. Pathogen will automatically include all plugins from ~/.vim/bundle folder at vim start. To install pathogen run following commands:

mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
echo 'execute pathogen#infect()' >> ~/.vimrc

Next, clone this repository into bundle folder:

cd ~/.vim/bundle
git clone --recursive https://github.com/ChevalierDeBalibari/my-vim-plugins.git .

That's all!

Fix a.vim shortcut conflict

Apply following patch to a.vim plugin:

diff --git a/plugin/a.vim b/plugin/a.vim
index 637feb5..deb5d77 100644
--- a/plugin/a.vim
+++ b/plugin/a.vim
@@ -559,8 +559,8 @@ comm! -nargs=? -bang IHT call AlternateOpenFileUnderCursor("t<bang>", <f-args>)
 comm! -nargs=? -bang IHN call AlternateOpenNextFile("<bang>")
 imap <Leader>ih <ESC>:IHS<CR>
 nmap <Leader>ih :IHS<CR>
-imap <Leader>is <ESC>:IHS<CR>:A<CR>
-nmap <Leader>is :IHS<CR>:A<CR>
+imap <Leader>ia <ESC>:IHS<CR>:A<CR>
+nmap <Leader>ia :IHS<CR>:A<CR>
 imap <Leader>ihn <ESC>:IHN<CR>
 nmap <Leader>ihn :IHN<CR>

Fix Conque-GDB Python error:

On newer python versions you might experience error with collections library. Apply following patch:

diff --git a/autoload/conque_gdb/conque_gdb.py b/autoload/conque_gdb/conque_gdb.py
index c54e3c8..fda5c63 100644
--- a/autoload/conque_gdb/conque_gdb.py
+++ b/autoload/conque_gdb/conque_gdb.py
@@ -1,4 +1,4 @@
-import re, collections
+import re, collections.abc
 
 # Marks that a breakpoint has been hit
 GDB_BREAK_MARK = '\x1a\x1a'
@@ -36,7 +36,7 @@ class RegisteredBreakpoint:
     def __str__(self):
         return self.filename + ':' + self.lineno + ',' + self.enabled
 
-class RegisteredBpDict(collections.MutableMapping):
+class RegisteredBpDict(collections.abc.MutableMapping):
     def __init__(self):
         self.r_breaks = dict()
         self.lookups = dict()

Increase linux coding style max line width:

Apply following patch:

diff --git a/plugin/linuxsty.vim b/plugin/linuxsty.vim
index 6f7e331..fb126da 100644
--- a/plugin/linuxsty.vim
+++ b/plugin/linuxsty.vim
@@ -80,7 +80,7 @@ function s:LinuxHighlighting()
     highlight default link LinuxError ErrorMsg
 
     syn match LinuxError / \+\ze\t/     " spaces before tab
-    syn match LinuxError /\%>80v[^()\{\}\[\]<>]\+/ " virtual column 81 and more
+    syn match LinuxError /\%>120v[^()\{\}\[\]<>]\+/ " virtual column 81 and more
 
     " Highlight trailing whitespace, unless we're in insert mode and the
     " cursor's placed right after the whitespace. This prevents us from having

Additional information

This repository contains only a portion of my complete vim installation that includes:

  • Collection of vim plugins
  • Optional patches for some plugins
  • Collection of vim themes
  • Custom .vimrc file
  • Script for automatic installation of all above mentioned stuff

Contributing

Send all suggestions to my mail: [email protected]

my-vim-plugins's People

Contributors

n3b0j5a avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.