Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
home
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Murukesh Mohanan
home
Commits
34fd0860
Commit
34fd0860
authored
Aug 26, 2015
by
Murukesh Mohanan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
help-to-url code
parent
606b95a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
22 deletions
+14
-22
.vim/ftplugin/man.vim
.vim/ftplugin/man.vim
+0
-0
.vim/vimrc
.vim/vimrc
+14
-22
No files found.
.vim/
after/
ftplugin/man.vim
→
.vim/ftplugin/man.vim
View file @
34fd0860
File moved
.vim/vimrc
View file @
34fd0860
...
...
@@ -55,6 +55,20 @@ set isfname-==
let g:tex_flavor = "latex"
function! Help2Url (...)
exec 'silent! help ' . ( a:0 ? a:1 : '' )
if ! a:0
exec "normal \<c-T>"
endif
let l:tagfile = expand ('%:t')
let @* = expand ('<cword>')
python import urllib
let @* = pyeval ('urllib.quote_plus ("' . @* . '")')
let @* = printf ('http://vimhelp.appspot.com/%s.html#%s', l:tagfile, @*)
endfunction
command! -nargs=? -complete=help H call Help2Url(<f-args>)
noremap ; :
noremap , ;
noremap < :tabp<CR>
...
...
@@ -128,28 +142,6 @@ if empty($MAN_PN) && @% == "" && getcwd() == "/tmp"
silent find test.*
endif
" function LookupFiles ()
" python <<EOF
" from os.path import *
" from vim import *
" current_file = eval ('expand("%")')
" current_index = str (current.buffer.number)
" PATHS = ['~', '~/.vim', '/etc']
"
" if current_file != '' and not isfile (current_file):
" for p in map (expanduser, PATHS):
" f = join (p, current_file)
" if isfile (f):
" command ('bad ' + f)
" command ('bd ' + current_index)
" command ('bl')
" # command ('silent keepalt file ' + f)
" break
" EOF
" endfunction
"
" autocmd BufWinEnter * nested call LookupFiles()
" From http://vi.stackexchange.com/questions/2009/
function! FindInPath(name)
" Force creation of new file for paths beginning with ./
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment