Permalink
Browse files

Version 1.1: add js,css which template includes feature, add a doc

  • Loading branch information...
1 parent 20c821e commit ee62507df94e2eea93e2434b9000f756ec4909aa zack shen committed with Oct 8, 2012
Showing with 470 additions and 311 deletions.
  1. +71 −29 README
  2. +46 −0 doc/djangojump.txt
  3. +353 −282 plugin/djangojump.vim
View
100 README
@@ -1,31 +1,73 @@
This is a mirror of http://www.vim.org/scripts/script.php?script_id=4257
-\\\" vim-djangojump plugin is used for
-\\\" jumping between url, view function and
-\\\" template immediately.
-\\\"
-\\\" note: now open vim at django project\\&#039s
-\\\" root path where has settings.py file
-\\\"
-\\\" author: zack
-\\\"
-\\\" tip:
-\\\" 1. url => view function
-\\\" :DUrltoview /app1/overview/
-\\\"
-\\\" 2. view function ==> template file
-\\\" :DViewtotpl (at line which contains
-\\\" template\\&#039s name)
-\\\"
-\\\" example code:
-\\\" ....
-\\\" (*) return render_to_response(\\\"index.html\\\")
-\\\"
-\\\" cursor at this line(*) and call command
-\\\" :DViewtotpl
-\\\"
-\\\" 3. template file ==> view function
-\\\" :DTpltoview
-\\\"
-\\\" 4. reload cache
-\\\" :DReloadCache
+description
+=============
+
+vim-djangojump plugin is used for
+jumping between url, view function and
+template immediately.
+
+note: now open vim at django project\&#039s
+root path where has settings.py file
+
+author: zack
+email: itachi.akatuki.sh@gmail.com
+
+tip:
+1. url => view function
+ :DUrltoview /app1/overview/
+
+2. view function ==> template file
+ :DViewtotpl (at line which contains
+ template\&#039s name)
+
+ example code:
+ ....
+ (*) return render_to_response(\\\"index.html\\\")
+
+ cursor at this line(*) and call command
+ :DViewtotpl
+
+3. template file ==> view function
+ :DTpltoview
+
+4. js which template includes ==> js source file
+ css which template includes ==> css source file
+ :DGotoscript
+
+5. reload cache
+ :DReloadCache
+
+6. url ==> template file
+ :DUrltotpl /xxx/yyy/
+
+install details
+=============
+
+linux platform is ok, it&#039s not tested under windows platform, maybe it can work correctly.
+
+1. copy djangojump.vim to ~/.vim/plugin/ folder
+2. open vim at django project root folder, then you can use these commands
+
+note: this plugin need python2.6+ support, at first opening vim, it would be slow, but after it would work normally.
+
+
+hotkeys
+===============
+template ==> view function
+nmap <c-d><c-t> :DTpltoview<CR>
+
+view function ==> view
+nmap <c-d><c-v> :DViewtotpl<CR>
+
+url ==> view function
+nmap <c-d><c-u> :DUrltoview
+
+template ==> script(js, css)
+nmap <c-d><c-s> :DGotoscript<CR>
+
+reload cache if add file or remove file
+nmap <c-d><c-r> :DReloadCache<CR>
+
+url ==> template file
+nmap <c-d><c-i> :DUrltotpl<CR>
View
@@ -0,0 +1,46 @@
+description
+============
+vim-djangojump plugin is used for
+jumping between url, view function and
+template immediately.
+
+note: now open vim at django project\\'s
+root path where has settings.py file
+
+author: zack
+email: itachi.akatuki.sh@gmail.com
+
+tip:
+1. url => view function
+ :DUrltoview /app1/overview/
+
+2. view function ==> template file
+ :DViewtotpl (at line which contains
+ template\\'s name)
+
+ example code:
+ ....
+ (*) return render_to_response(\\\"index.html\\\")
+
+ cursor at this line(*) and call command
+ :DViewtotpl
+
+3. template file ==> view function
+ :DTpltoview
+
+4. js which template includes ==> js source file
+ css which template includes ==> css source file
+ :DGotoscript
+
+5. reload cache
+ :DReloadCache
+
+install details
+===============
+
+linux platform is ok, it\'s not tested under windows platform, maybe it can work correctly.
+
+1. copy djangojump.vim to ~/.vim/plugin/ folder
+2. open vim at django project root folder, then you can use these commands
+
+note: this plugin need python2.6+ support
Oops, something went wrong.

0 comments on commit ee62507

Please sign in to comment.